/**
 * Created by Yixin on 2017/8/20.
 */
define([
    "app"
],
function (app) {
   app.service("manageRegisterDataService",["$http",function ($http) {
       return {
           getAllRegistration:function () {
               return $http
                   .get(requestRootUrl + "api/manage-register/get-all-registration");
           },
           agreeRegistration:function (teamId) {
               return $http({
                   url:requestRootUrl + "api/manage-register/agree-registration",
                   method:"POST",
                   params:{
                       teamId:teamId
                   }
               });
           },
           refuseRegistration:function(teamId) {
               return $http({
                   url:requestRootUrl + "api/manage-register/refuse-registration",
                   method:"POST",
                   params:{
                       teamId:teamId
                   }
               });
           }
       }
   }]);
});